home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / atool201.zip / DEMOTOOL.RC < prev    next >
Text File  |  1994-11-29  |  3KB  |  136 lines

  1.  
  2. /*
  3.     TOOLDEMO.RC -- resource script file defining Tool Bar
  4.     control. This is a part of TOOLDEMO project - demonstration
  5.     of ESTOOLS.DLL
  6.     Copyright (C) Eugene Sokolov 1992-1993, (516)632-7892,
  7.     esokolov@sbchm1.chem.sunysb.edu
  8.  
  9.     You can freely copy, change or redistribute this file as long
  10.     as this notice remains intact.
  11.  
  12.     Last edition 11/16/94 (mm/dd/yy)
  13. */
  14.  
  15.  
  16. #include "esdefs.h"
  17. #include "estools.h"
  18.  
  19. /* Bitmap placed on top of TB buttons */ 
  20. BTNS BITMAP "btns.bmp"
  21. BMP0 BITMAP "bmp0.bmp"
  22. BMP2_5 BITMAP "bmp2_5.bmp"
  23. BMP6 BITMAP "bmp6.bmp"
  24.  
  25. /* Application icon */
  26. TBICON ICON "tbdemo.ico"
  27.  
  28. /*Tool Bar window caption */
  29. STRINGTABLE
  30. BEGIN
  31.     NAME1, "ES ToolBar"
  32. END
  33.  
  34. /* Script for the Tool Bar itself */
  35. TOOLBAR RCDATA
  36. BEGIN
  37.    TB_RESOURCE_VERSION,         /* Resource version, new to 1.01 !!! ,
  38.                    old resources will not work !!! */
  39.    NAME1,               /* Tool Bar name */
  40.    TBS_CHILD | TBS_MOVABLE | TBS_BORDER | TBS_VISIBLE,  /* Tool Bar style */
  41.         /* ^^^^^^^^^^^ -- default, included for reference only */
  42.    BTNS, 24, 24,                /* bitmap with button faces and size of the
  43.                 /* individual face (w-h) */
  44.    40, 32,            /* button size - width, height */
  45.    3,                /* border size -- ignored if no
  46.                    TBS_BORDER style specified*/
  47.    5,                 /* # of buttons in the horizontal line */
  48.    5,                 /* total # of controls */
  49.    0, 0, ID_CMD1, TBB_DISABLED,    /* controls (buttons) in the form:
  50.                     x-offset in BTNS, y-offset,
  51.                     Button ID (wParam in WM_COMMAND
  52.                     message),
  53.                     Button style (see description of styles
  54.                     in estools.h
  55.                 */
  56.    0, 24, ID_CMD2, TBB_STANDARD,
  57.    0, 48, ID_CMD3, TBB_AUTO2STATE | TBB_PRESSED,
  58.    0, 72, ID_CMD4, TBB_STANDARD,
  59.    0, 96, ID_CMD5, TBB_2STATE,
  60.    0                             /* not necessary, but recommended for future
  61.                    compatibility
  62.                  */
  63. END
  64.  
  65. /* Application menu */
  66. TBMENU MENU
  67. BEGIN
  68.     POPUP "&Buttons"
  69.     BEGIN
  70.         POPUP "&1"
  71.         BEGIN
  72.             MENUITEM "&Disabled", 1100, CHECKED
  73.             MENUITEM "&Auto 2 state", 1101
  74.             MENUITEM "&2 State", 1102
  75.         END
  76.  
  77.         POPUP "&2"
  78.         BEGIN
  79.             MENUITEM "&Disabled", 1200
  80.             MENUITEM "&Auto 2 state", 1201
  81.             MENUITEM "&2 State", 1202
  82.         END
  83.  
  84.         POPUP "&3"
  85.         BEGIN
  86.             MENUITEM "&Disabled", 1300
  87.             MENUITEM "&Auto 2 state", 1301, CHECKED
  88.             MENUITEM "&2 State", 1302
  89.         END
  90.  
  91.         POPUP "&4"
  92.         BEGIN
  93.             MENUITEM "&Disabled", 1400
  94.             MENUITEM "&Auto 2 state", 1401
  95.             MENUITEM "&2 State", 1402
  96.         END
  97.  
  98.         POPUP "&5"
  99.         BEGIN
  100.             MENUITEM "&Disabled", 1500
  101.             MENUITEM "&Auto 2 state", 1501
  102.             MENUITEM "&2 State", 1502, CHECKED
  103.         END
  104.  
  105.         POPUP "&Insert"
  106.         BEGIN
  107.             MENUITEM "Button &0", 1600
  108.             MENUITEM "Button &2.5", 1601
  109.             MENUITEM "Button &6", 1602
  110.         END
  111.     END
  112.  
  113.     POPUP "&Tool Bar"
  114.     BEGIN
  115.         POPUP "&Buttons Per Row"
  116.         BEGIN
  117.             MENUITEM "&1", 2001
  118.             MENUITEM "&2", 2002
  119.             MENUITEM "&3", 2003
  120.             MENUITEM "&4", 2004
  121.             MENUITEM "&5", 2005
  122.             MENUITEM "&6", 2006
  123.             MENUITEM "&7", 2007
  124.             MENUITEM "&8", 2008
  125.         END
  126.  
  127.         MENUITEM "&TBS_Movable (or TBS_Fixed)", 2010, CHECKED
  128.         MENUITEM "&TBS_Border", 2011, CHECKED
  129.     END
  130.     POPUP "&Help"
  131.     BEGIN
  132.         MENUITEM "&Contents", 3000
  133.     END
  134. END
  135.  
  136.